projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ea47be
)
common: miiphyutil: no need to check name of mii_dev
author
Peng Fan
<
[email protected]
>
Tue, 24 Nov 2015 09:03:47 +0000
(17:03 +0800)
committer
Tom Rini
<
[email protected]
>
Sat, 5 Dec 2015 23:22:15 +0000
(18:22 -0500)
The entry name of mii_dev is an array not pointer, so
no need to check.
Signed-off-by: Peng Fan <
[email protected]
>
Cc: Joe Hershberger <
[email protected]
>
Cc: Simon Glass <
[email protected]
>
Cc: Bin Meng <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
Acked-by: Joe Hershberger <
[email protected]
>
Reviewed-by: Bin Meng <
[email protected]
>
common/miiphyutil.c
patch
|
blob
|
history
diff --git
a/common/miiphyutil.c
b/common/miiphyutil.c
index e499b588368fd9dcf9f04a6619976923e9d30a53..0811e098b47978579ce5d25fe5f82f5f010a3823 100644
(file)
--- a/
common/miiphyutil.c
+++ b/
common/miiphyutil.c
@@
-159,7
+159,7
@@
void mdio_free(struct mii_dev *bus)
int mdio_register(struct mii_dev *bus)
{
- if (!bus || !bus->
name || !bus->
read || !bus->write)
+ if (!bus || !bus->read || !bus->write)
return -1;
/* check if we have unique name */